Skip to content

Conversation

@DariaYasni
Copy link
Collaborator

add_trial_test

Copy link
Collaborator

@alena0505 alena0505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В тесте лишние импорты, которые потом не используются. Предложу вариант покомпактнее с использованием имеющейся фикстуры open_page.

from pages.new_item_page import NewItemPage

def test_empty_field(open_page):
"""Написать название тест-кейса"""

new_item_page = open_page(NewItemPage, "/view/all/newJob")  # Открыть страницу создания нового элемента, используя фикстуру open_page
new_item_page.click("li.com_cloudbees_hudson_plugins_folder_Folder")  # Выбрать тип "Folder" (не заполняя поле имени)
assert new_item_page.is_visible("div[id='itemname-required']") # Проверить появление сообщения об ошибке

Чтобы тест полностью соответствовал структуре POM, нужно добавить 2 используемых локатора в class и вызывать их из класса.

@DariaYasni
Copy link
Collaborator Author

Alena,rea the comment. Would try to fix. Thank you.

Ekaterina-v8 and others added 3 commits January 13, 2026 16:10
@DariaYasni DariaYasni added the AT label Jan 17, 2026
@DariaYasni DariaYasni merged commit 1388f2e into main Jan 17, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Review to Done in JenkinsQA_Python_2025_fall Jan 17, 2026
@DariaYasni DariaYasni deleted the D.I._01.06.2026 branch January 17, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

7 participants